/**
 * MP Software.
 */
package models;

import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;

/**
 * @author Jeremiah John M. Macariola
 *
 */
@Entity
public class Deduction extends Model {

    public String deductionType;

    public BigDecimal value;

    @ManyToOne
    public Payroll payroll;

    public Deduction(String deductionType, BigDecimal value, Payroll payroll) {
        super();
        this.deductionType = deductionType;
        this.value = value;
        this.payroll = payroll;
    }

}
